#include "TableBase.h"
CTableBase::CTableBase()
{
  m_kv = new CKvdb();
}
CTableBase::~CTableBase()
{
  if(NULL != m_kv)
  {
    delete m_kv;
    m_kv = NULL;
  }
};

int32_t CTableBase::init(const char* dbname)
{
  if(NULL == dbname)
  {
    assert(0);
    return -1;
  }
  m_kv->init(dbname);
  return 0;
}

int32_t CTableBase::delete_local(const char* phone)
{
    return m_kv->Delete(phone);
}
